primes -> sieve1(from1(s1(s1(0))))
from1(X) -> cons2(X, n__from1(s1(X)))
head1(cons2(X, Y)) -> X
tail1(cons2(X, Y)) -> activate1(Y)
if3(true, X, Y) -> activate1(X)
if3(false, X, Y) -> activate1(Y)
filter2(s1(s1(X)), cons2(Y, Z)) -> if3(divides2(s1(s1(X)), Y), n__filter2(s1(s1(X)), activate1(Z)), n__cons2(Y, n__filter2(X, sieve1(Y))))
sieve1(cons2(X, Y)) -> cons2(X, n__filter2(X, sieve1(activate1(Y))))
from1(X) -> n__from1(X)
filter2(X1, X2) -> n__filter2(X1, X2)
cons2(X1, X2) -> n__cons2(X1, X2)
activate1(n__from1(X)) -> from1(X)
activate1(n__filter2(X1, X2)) -> filter2(X1, X2)
activate1(n__cons2(X1, X2)) -> cons2(X1, X2)
activate1(X) -> X
↳ QTRS
↳ DependencyPairsProof
primes -> sieve1(from1(s1(s1(0))))
from1(X) -> cons2(X, n__from1(s1(X)))
head1(cons2(X, Y)) -> X
tail1(cons2(X, Y)) -> activate1(Y)
if3(true, X, Y) -> activate1(X)
if3(false, X, Y) -> activate1(Y)
filter2(s1(s1(X)), cons2(Y, Z)) -> if3(divides2(s1(s1(X)), Y), n__filter2(s1(s1(X)), activate1(Z)), n__cons2(Y, n__filter2(X, sieve1(Y))))
sieve1(cons2(X, Y)) -> cons2(X, n__filter2(X, sieve1(activate1(Y))))
from1(X) -> n__from1(X)
filter2(X1, X2) -> n__filter2(X1, X2)
cons2(X1, X2) -> n__cons2(X1, X2)
activate1(n__from1(X)) -> from1(X)
activate1(n__filter2(X1, X2)) -> filter2(X1, X2)
activate1(n__cons2(X1, X2)) -> cons2(X1, X2)
activate1(X) -> X
FILTER2(s1(s1(X)), cons2(Y, Z)) -> IF3(divides2(s1(s1(X)), Y), n__filter2(s1(s1(X)), activate1(Z)), n__cons2(Y, n__filter2(X, sieve1(Y))))
SIEVE1(cons2(X, Y)) -> CONS2(X, n__filter2(X, sieve1(activate1(Y))))
IF3(true, X, Y) -> ACTIVATE1(X)
ACTIVATE1(n__from1(X)) -> FROM1(X)
FILTER2(s1(s1(X)), cons2(Y, Z)) -> SIEVE1(Y)
SIEVE1(cons2(X, Y)) -> SIEVE1(activate1(Y))
ACTIVATE1(n__cons2(X1, X2)) -> CONS2(X1, X2)
ACTIVATE1(n__filter2(X1, X2)) -> FILTER2(X1, X2)
PRIMES -> SIEVE1(from1(s1(s1(0))))
SIEVE1(cons2(X, Y)) -> ACTIVATE1(Y)
PRIMES -> FROM1(s1(s1(0)))
FILTER2(s1(s1(X)), cons2(Y, Z)) -> ACTIVATE1(Z)
IF3(false, X, Y) -> ACTIVATE1(Y)
FROM1(X) -> CONS2(X, n__from1(s1(X)))
TAIL1(cons2(X, Y)) -> ACTIVATE1(Y)
primes -> sieve1(from1(s1(s1(0))))
from1(X) -> cons2(X, n__from1(s1(X)))
head1(cons2(X, Y)) -> X
tail1(cons2(X, Y)) -> activate1(Y)
if3(true, X, Y) -> activate1(X)
if3(false, X, Y) -> activate1(Y)
filter2(s1(s1(X)), cons2(Y, Z)) -> if3(divides2(s1(s1(X)), Y), n__filter2(s1(s1(X)), activate1(Z)), n__cons2(Y, n__filter2(X, sieve1(Y))))
sieve1(cons2(X, Y)) -> cons2(X, n__filter2(X, sieve1(activate1(Y))))
from1(X) -> n__from1(X)
filter2(X1, X2) -> n__filter2(X1, X2)
cons2(X1, X2) -> n__cons2(X1, X2)
activate1(n__from1(X)) -> from1(X)
activate1(n__filter2(X1, X2)) -> filter2(X1, X2)
activate1(n__cons2(X1, X2)) -> cons2(X1, X2)
activate1(X) -> X
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
FILTER2(s1(s1(X)), cons2(Y, Z)) -> IF3(divides2(s1(s1(X)), Y), n__filter2(s1(s1(X)), activate1(Z)), n__cons2(Y, n__filter2(X, sieve1(Y))))
SIEVE1(cons2(X, Y)) -> CONS2(X, n__filter2(X, sieve1(activate1(Y))))
IF3(true, X, Y) -> ACTIVATE1(X)
ACTIVATE1(n__from1(X)) -> FROM1(X)
FILTER2(s1(s1(X)), cons2(Y, Z)) -> SIEVE1(Y)
SIEVE1(cons2(X, Y)) -> SIEVE1(activate1(Y))
ACTIVATE1(n__cons2(X1, X2)) -> CONS2(X1, X2)
ACTIVATE1(n__filter2(X1, X2)) -> FILTER2(X1, X2)
PRIMES -> SIEVE1(from1(s1(s1(0))))
SIEVE1(cons2(X, Y)) -> ACTIVATE1(Y)
PRIMES -> FROM1(s1(s1(0)))
FILTER2(s1(s1(X)), cons2(Y, Z)) -> ACTIVATE1(Z)
IF3(false, X, Y) -> ACTIVATE1(Y)
FROM1(X) -> CONS2(X, n__from1(s1(X)))
TAIL1(cons2(X, Y)) -> ACTIVATE1(Y)
primes -> sieve1(from1(s1(s1(0))))
from1(X) -> cons2(X, n__from1(s1(X)))
head1(cons2(X, Y)) -> X
tail1(cons2(X, Y)) -> activate1(Y)
if3(true, X, Y) -> activate1(X)
if3(false, X, Y) -> activate1(Y)
filter2(s1(s1(X)), cons2(Y, Z)) -> if3(divides2(s1(s1(X)), Y), n__filter2(s1(s1(X)), activate1(Z)), n__cons2(Y, n__filter2(X, sieve1(Y))))
sieve1(cons2(X, Y)) -> cons2(X, n__filter2(X, sieve1(activate1(Y))))
from1(X) -> n__from1(X)
filter2(X1, X2) -> n__filter2(X1, X2)
cons2(X1, X2) -> n__cons2(X1, X2)
activate1(n__from1(X)) -> from1(X)
activate1(n__filter2(X1, X2)) -> filter2(X1, X2)
activate1(n__cons2(X1, X2)) -> cons2(X1, X2)
activate1(X) -> X
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ QDP
↳ QDPOrderProof
FILTER2(s1(s1(X)), cons2(Y, Z)) -> SIEVE1(Y)
SIEVE1(cons2(X, Y)) -> SIEVE1(activate1(Y))
ACTIVATE1(n__filter2(X1, X2)) -> FILTER2(X1, X2)
SIEVE1(cons2(X, Y)) -> ACTIVATE1(Y)
FILTER2(s1(s1(X)), cons2(Y, Z)) -> ACTIVATE1(Z)
primes -> sieve1(from1(s1(s1(0))))
from1(X) -> cons2(X, n__from1(s1(X)))
head1(cons2(X, Y)) -> X
tail1(cons2(X, Y)) -> activate1(Y)
if3(true, X, Y) -> activate1(X)
if3(false, X, Y) -> activate1(Y)
filter2(s1(s1(X)), cons2(Y, Z)) -> if3(divides2(s1(s1(X)), Y), n__filter2(s1(s1(X)), activate1(Z)), n__cons2(Y, n__filter2(X, sieve1(Y))))
sieve1(cons2(X, Y)) -> cons2(X, n__filter2(X, sieve1(activate1(Y))))
from1(X) -> n__from1(X)
filter2(X1, X2) -> n__filter2(X1, X2)
cons2(X1, X2) -> n__cons2(X1, X2)
activate1(n__from1(X)) -> from1(X)
activate1(n__filter2(X1, X2)) -> filter2(X1, X2)
activate1(n__cons2(X1, X2)) -> cons2(X1, X2)
activate1(X) -> X
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
FILTER2(s1(s1(X)), cons2(Y, Z)) -> SIEVE1(Y)
ACTIVATE1(n__filter2(X1, X2)) -> FILTER2(X1, X2)
SIEVE1(cons2(X, Y)) -> ACTIVATE1(Y)
FILTER2(s1(s1(X)), cons2(Y, Z)) -> ACTIVATE1(Z)
Used ordering: Polynomial Order [17,21] with Interpretation:
SIEVE1(cons2(X, Y)) -> SIEVE1(activate1(Y))
POL( from1(x1) ) = x1 + 1
POL( if3(x1, ..., x3) ) = 0
POL( sieve1(x1) ) = x1 + 1
POL( n__from1(x1) ) = x1
POL( divides2(x1, x2) ) = max{0, -1}
POL( cons2(x1, x2) ) = x1 + x2 + 1
POL( activate1(x1) ) = x1 + 1
POL( FILTER2(x1, x2) ) = x2 + 1
POL( filter2(x1, x2) ) = x2 + 1
POL( ACTIVATE1(x1) ) = x1 + 1
POL( SIEVE1(x1) ) = x1 + 1
POL( n__filter2(x1, x2) ) = x2 + 1
POL( s1(x1) ) = max{0, -1}
POL( n__cons2(x1, x2) ) = x1 + x2
cons2(X1, X2) -> n__cons2(X1, X2)
activate1(n__filter2(X1, X2)) -> filter2(X1, X2)
from1(X) -> cons2(X, n__from1(s1(X)))
filter2(s1(s1(X)), cons2(Y, Z)) -> if3(divides2(s1(s1(X)), Y), n__filter2(s1(s1(X)), activate1(Z)), n__cons2(Y, n__filter2(X, sieve1(Y))))
from1(X) -> n__from1(X)
activate1(n__cons2(X1, X2)) -> cons2(X1, X2)
activate1(n__from1(X)) -> from1(X)
activate1(X) -> X
filter2(X1, X2) -> n__filter2(X1, X2)
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ QDP
↳ QDPOrderProof
↳ QDP
SIEVE1(cons2(X, Y)) -> SIEVE1(activate1(Y))
primes -> sieve1(from1(s1(s1(0))))
from1(X) -> cons2(X, n__from1(s1(X)))
head1(cons2(X, Y)) -> X
tail1(cons2(X, Y)) -> activate1(Y)
if3(true, X, Y) -> activate1(X)
if3(false, X, Y) -> activate1(Y)
filter2(s1(s1(X)), cons2(Y, Z)) -> if3(divides2(s1(s1(X)), Y), n__filter2(s1(s1(X)), activate1(Z)), n__cons2(Y, n__filter2(X, sieve1(Y))))
sieve1(cons2(X, Y)) -> cons2(X, n__filter2(X, sieve1(activate1(Y))))
from1(X) -> n__from1(X)
filter2(X1, X2) -> n__filter2(X1, X2)
cons2(X1, X2) -> n__cons2(X1, X2)
activate1(n__from1(X)) -> from1(X)
activate1(n__filter2(X1, X2)) -> filter2(X1, X2)
activate1(n__cons2(X1, X2)) -> cons2(X1, X2)
activate1(X) -> X